﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LCL.Config
{
    /// <summary>
    ///  DbConfig配置类
    /// </summary>
    public partial class DbConfig
    {
        /// <summary>
        /// 获取配置类实例
        /// </summary>
        /// <returns></returns>
        public static DbConfigInfo GetConfig()
        {
            return DbConfigFileManager.LoadConfig();
        }
        /// <summary>
        /// 保存配置类实例
        /// </summary>
        /// <param name="configinfo"></param>
        /// <returns></returns>
        public static bool SaveConfig(DbConfigInfo configinfo)
        {
            DbConfigFileManager rcfm = new DbConfigFileManager();
            DbConfigFileManager.ConfigInfo = configinfo;
            return rcfm.SaveConfig();
        }
    }
}
